<?php
/**
 * Author: Adam
 * Create at 2019/4/13.
 */

namespace App\Http\Controllers\Api\ORMObservers;

use App\Http\Controllers\Controller;
use App\Models\System\User;
use Illuminate\Support\Facades\DB;

class ObserverController extends Controller
{

    public function index()
    {

//        $user = new User();
//        $user->name = 1;
//        $user->email = '123213213';
//        $user->password = '123';
//        $user->save();
        DB::table('user')->where(['id'=>1])->update(['name'=>'1M']);
        return 1;
    }

}
